package com.zmn.oms.discount;

import com.alibaba.fastjson.JSON;
import com.zmn.oms.common.constant.OrderConsts;
import com.zmn.oms.model.dto.work.modify.amount.ZsDiscountCouponDTO;

/**
 * 类描述：优惠券优惠测试类
 *
 * @author lujia
 * @date 2019/03/26 17:43
 */
public class OrderDiscountCouponTest2 {

    public static void main(String[] args) {
        ZsDiscountCouponDTO couponDTO = new ZsDiscountCouponDTO();
        couponDTO.setOrderId(325345303492702208L);
        couponDTO.setWorkId(325345303492702208L);
        couponDTO.setOperator("陆佳");
        couponDTO.setOperatorType(3);
        couponDTO.setOperatorId(131993L);

        // 订单金额 21800
        couponDTO.setAmount(2900);
        couponDTO.setChannelPrepayAmount(100);
        couponDTO.setTotalDiscountAmount(2900);
        couponDTO.setType(OrderConsts.ORDER_DISCOUNT_TYPE_LIMIT_FREE);
        couponDTO.setRemark("券号：19279183171");
        couponDTO.setSourceId(12313123);
        couponDTO.setSourceData("{\"discountValue\":0.1}");

        System.out.printf("%s", JSON.toJSONString(couponDTO));
    }

}
